package com.bw.service;

import com.bw.bean.Student;
import com.bw.dao.StudentDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
@Service
public class StudentServiceimp implements StudentService {
    @Resource
    StudentDao studentDao;

    @Override
    public List<Map<String, Object>> findAll() {
        return studentDao.findAll();
    }

    @Override
    public int add(Student student) {
        return studentDao.add(student);
    }
}
